package org.starapp.generator;

public class ForeignKey {

	private String pkTableCat;//被导入的主键表类别（可为 null）
	private String pkTableShem;//被导入的主键表模式（可为 null）
	private String pkTableName;//被导入的主键表名称
	private String pkColumnName;//被导入的主键列名称
	private String fkTableCat;//外键表类别（可为 null）
	private String fkTableSchem;//外键表模式（可为 null）
	private String fkTableName;//外键表名称
	private String fkColumnName;//外键列名称
	private short keySeq;//外键中的序列号（值 1 表示外键中的第一列，值 2 表示外键中的第二列）
	private short updateRule;//更新主键时外键发生的变化
	private short deleteRule;//删除主键时外键发生的变化
	private String pkName;//主键的名称（可为 null）
	private String fkName;//外键的名称（可为 null）
	private short deferrability;//是否可以将对外键约束的评估延迟到提交时间
	
	//
	private String fkType;//one2one one2many many2one
	private String fkJavaClassName;
	private String fkJavaClassAttrName;
	private String fkJavaColumnName;
	private String fkJavaColumnAttrName;
	private String pkJavaClassName;
	private String pkJavaClassAttrName;
	private String pkJavaColumnName;
	private String pkJavaColumnAttrName;

	
		
	public String getFkType() {
		return fkType;
	}
	public void setFkType(String fkType) {
		this.fkType = fkType;
	}
	public String getFkJavaClassName() {
		return fkJavaClassName;
	}
	public void setFkJavaClassName(String fkJavaClassName) {
		this.fkJavaClassName = fkJavaClassName;
	}
	public String getFkJavaClassAttrName() {
		return fkJavaClassAttrName;
	}
	public void setFkJavaClassAttrName(String fkJavaClassAttrName) {
		this.fkJavaClassAttrName = fkJavaClassAttrName;
	}
	public String getFkJavaColumnName() {
		return fkJavaColumnName;
	}
	public void setFkJavaColumnName(String fkJavaColumnName) {
		this.fkJavaColumnName = fkJavaColumnName;
	}

	public String getFkJavaColumnAttrName() {
		return fkJavaColumnAttrName;
	}
	public void setFkJavaColumnAttrName(String fkJavaColumnAttrName) {
		this.fkJavaColumnAttrName = fkJavaColumnAttrName;
	}
	public String getPkJavaClassName() {
		return pkJavaClassName;
	}
	public void setPkJavaClassName(String pkJavaClassName) {
		this.pkJavaClassName = pkJavaClassName;
	}
	public String getPkJavaClassAttrName() {
		return pkJavaClassAttrName;
	}
	public void setPkJavaClassAttrName(String pkJavaClassAttrName) {
		this.pkJavaClassAttrName = pkJavaClassAttrName;
	}
	public String getPkJavaColumnName() {
		return pkJavaColumnName;
	}
	public void setPkJavaColumnName(String pkJavaColumnName) {
		this.pkJavaColumnName = pkJavaColumnName;
	}

	public String getPkJavaColumnAttrName() {
		return pkJavaColumnAttrName;
	}
	public void setPkJavaColumnAttrName(String pkJavaColumnAttrName) {
		this.pkJavaColumnAttrName = pkJavaColumnAttrName;
	}

	public String getPkTableCat() {
		return pkTableCat;
	}
	public void setPkTableCat(String pkTableCat) {
		this.pkTableCat = pkTableCat;
	}
	public String getPkTableShem() {
		return pkTableShem;
	}
	public void setPkTableShem(String pkTableShem) {
		this.pkTableShem = pkTableShem;
	}
	public String getPkTableName() {
		return pkTableName;
	}
	public void setPkTableName(String pkTableName) {
		this.pkTableName = pkTableName;
	}
	public String getPkColumnName() {
		return pkColumnName;
	}
	public void setPkColumnName(String pkColumnName) {
		this.pkColumnName = pkColumnName;
	}
	public String getFkTableCat() {
		return fkTableCat;
	}
	public void setFkTableCat(String fkTableCat) {
		this.fkTableCat = fkTableCat;
	}
	public String getFkTableSchem() {
		return fkTableSchem;
	}
	public void setFkTableSchem(String fkTableSchem) {
		this.fkTableSchem = fkTableSchem;
	}
	public String getFkTableName() {
		return fkTableName;
	}
	public void setFkTableName(String fkTableName) {
		this.fkTableName = fkTableName;
	}
	public String getFkColumnName() {
		return fkColumnName;
	}
	public void setFkColumnName(String fkColumnName) {
		this.fkColumnName = fkColumnName;
	}
	public short getKeySeq() {
		return keySeq;
	}
	public void setKeySeq(short keySeq) {
		this.keySeq = keySeq;
	}
	public short getUpdateRule() {
		return updateRule;
	}
	public void setUpdateRule(short updateRule) {
		this.updateRule = updateRule;
	}
	public short getDeleteRule() {
		return deleteRule;
	}
	public void setDeleteRule(short deleteRule) {
		this.deleteRule = deleteRule;
	}
	public String getPkName() {
		return pkName;
	}
	public void setPkName(String pkName) {
		this.pkName = pkName;
	}
	public String getFkName() {
		return fkName;
	}
	public void setFkName(String fkName) {
		this.fkName = fkName;
	}
	public short getDeferrability() {
		return deferrability;
	}
	public void setDeferrability(short deferrability) {
		this.deferrability = deferrability;
	}
	
}
